﻿Imports extremo

Public Class Usuarios
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
     

    End Sub

    Protected Sub btnNuevo_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnNuevo.Click
        Response.Redirect("~/NuevoUsuario.aspx", False)
    End Sub

    Protected Sub btnBuscar_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnBuscar.Click

        Dim negocio = New UsuarioNegocio

        Dim lista = negocio.buscarPorNombre(Me.txtNombre.Text)

        dgvCategorias.DataSource = lista
        dgvCategorias.DataBind()

    End Sub

    Protected Sub Home_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Home.Click
        Response.Redirect("Home.aspx", True)
    End Sub
End Class